package Testing;

import static org.junit.Assert.*;

import org.activiti.engine.HistoryService;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.TaskService;
import org.activiti.engine.test.Deployment;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:listening-application-context.xml")
public class PerformanceTester {

		@Autowired
		private RuntimeService runtimeService;

		@Autowired
		private TaskService taskService;

		@Autowired
		private HistoryService historyService;

	
	private static final String TEST_PROCESS = "myPerformanceProcess";

	@Test
	public void test() {
		runtimeService.startProcessInstanceById(TEST_PROCESS);
	}

}
